{block #content}
{snippet rights}
<ul id="user-rights" n:if="count($data) > 0">
    <li n:foreach="$data as $moduleName => $resources">
        <span>{$moduleName} module&nbsp;</span>
        (<a class="ajax acl-button" href="{link allowModule! $groupId, $moduleName}" title="{dictionary "user_allowAll"}" >{dictionary "user_allowAll"}</a> /
        <a class="ajax acl-button" href="{link denyModule! $groupId, $moduleName}" title="{dictionary "user_denyAll"}" >{dictionary "user_denyAll"}</a>)
        <ul class="user-rights-resources" n:if="count($resources) > 0">
            <li n:foreach="$resources as $resId => $resInfo">
                <span>{dictionary $resInfo["title"]}&nbsp;</span>
                (<a class="ajax acl-button" href="{link allowResource! $groupId, $resId}" title="{dictionary "user_allowAll"}">{dictionary "user_allowAll"}</a> /
                <a class="ajax acl-button" href="{link denyResource! $groupId, $resId}" title="{dictionary "user_denyAll"}">{dictionary "user_denyAll"}</a>)
                <ul class="user-rights-operations" n:if="count($resInfo['operations'])">
                    <li n:foreach="$resInfo['operations'] as $opId => $opInfo">                        
                        <a href="{link denyOperation! $groupId, $opId}" class="ajax acl-deny" n:if="$opInfo['allowed']">{dictionary $opInfo['title']}</a>
                        <a href="{link allowOperation! $groupId, $opId}" class="ajax acl-allow" n:if="!$opInfo['allowed']">{dictionary $opInfo['title']}</a>                        
                    </li>
                </ul>
            </li>
        </ul>
    </li>
</ul>
{/snippet}
{/block}